package com.cangmaomao.m_mePen.contract

import android.content.Context
import com.cangmaomao.lib.base.BasePresenter
import com.cangmaomao.lib.base.BaseView
import com.cangmaomao.m_mePen.bean.Login

interface RegContract {

    interface View : BaseView<Presenter> {

        fun context(): Context

        fun phone(): String

        fun password(): String

        fun code(): String

        fun loadMap(): Map<String, String>

        fun responseData(flag: Boolean, msg: String = "")

        fun requestFail(it: Throwable)

    }

    interface Presenter : BasePresenter {

        fun loadLogin()

        fun getVerificationCode()

        fun handleData(data: Login)
    }

}